package com.systop.supervise.service.Impl;

import com.systop.common.pojo.course_library;
import com.systop.supervise.mapper.CourselibraryMapper;
import com.systop.supervise.service.CourselibraryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CourselibraryServiceImpl implements CourselibraryService {
    @Autowired
    private CourselibraryMapper courselibraryMapper;
    //查看全部
    @Override
    public List<course_library> sourse_libraryList() {
        return courselibraryMapper.sourse_libraryList();
    }

    @Override
    public int insertCourse_library(course_library c) {
        return courselibraryMapper.insertCourse_library(c);
    }

    @Override
    public int updataCourse_library(course_library c) {
        return courselibraryMapper.updataCourse_library(c);
    }

    @Override
    public List<course_library> course_libraryIdlist(int course_id) {
        return courselibraryMapper.course_libraryIdlist(course_id);
    }

    @Override
    public int deleteCourse_library(int course_id) {
        return courselibraryMapper.deleteCourse_library(course_id);
    }
}
